<gm:page title="Comment App" authenticate="true" gadget="true">
  <div class="gm-app-header">
    <h1>Comments</h1>
  </div>
  <gm:list id="commentList" data="${app}/comment" template="commentTemplate"/>
  <gm:template id="commentTemplate">
    <table class="gm-table">
      <thead>
        <tr>
          <th width="100">Title</th>  
          <th width="200">Comment</th>
          <th width="30"></th>
        </tr>
      </thead>
      <tr repeat="true">
        <td><gm:text ref="gd:title" hint="Enter title."/></td>
        <td><gm:text ref="gd:comment" hint="Enter comment."/></td>
        <td><gm:editButtons/></td>
      </tr>
      <tfoot>
        <tr>
          <td colspan="3" align="center">
            <gm:create label="Add Comment"/>
          </td>
        </tr>
      </tfoot>
    </table>
  </gm:template>  
</gm:page>